package com.examination.system.instructor.service;


import com.examination.framework.model.response.QueryResponseResult;
import com.examination.system.administration.response.AddResult;
import com.examination.system.administration.response.DeleteResult;
import com.examination.system.administration.response.UpdateResult;
import com.examination.system.instructor.student.ext.TbStudentEssential;
import com.mongodb.bulk.DeleteRequest;


/**
 * 实体存储库服务
 * @author 寇淇芮
 * @Date 2019/10/15 19:07
 */
public interface EntityRepositoryService<T>  {

    QueryResponseResult<T> findListPage(Integer page, Integer size,T entity);

    T findById(String id);

    UpdateResult<T> updateById(T entity, String id);

    DeleteResult<T> deleteById(String id);

    DeleteResult<T> deleteEentiy(T entity);

    AddResult<T> addEntity(T entity );
}
